<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="template.xhtml">
	<ui:define name="corpo">
		#{livroMB.autalizarLivro()}
		<!-- Main hero unit for a primary marketing message or call to action -->
		<div class="hero-unit">
			<h1>
				#{livroMB.livro.nome}
				<h:commandLink actionListener="#{carrinhoMB.adicionarLivro(livroMB.livro)}" >
					<img style="margin-left: 100px;" src="./img/carrinho_de_compras.png" alt="Adicionar ao carrinho" height="50px" width="50px"/>
				</h:commandLink>
			</h1>
			<p>#{livroMB.precoLivro}</p>
		</div>

		<!-- Example row of columns -->
		<div class="row">
			<div class="span9">
				<p>
					#{livroMB.livro.autor.nome} - #{livroMB.livro.categoria.nome}
				</p>
			</div>
		</div>
	</ui:define>
</ui:composition>
</html>